<?php
if($act=="editcontent")
{
    $sql_select = "SELECT * FROM tblsettourelm WHERE iId = $id";

	$rs=$dbsql->query($sql_select);
	if($dbsql->num_rows($rs)==0)
	{
		page_transfer("Content not exists");
	}
	$tourelm= $dbsql->fetch_array($rs);
}
else
{
   // $sql_select = "select count(iId) as count from tblsettourelm where iParentId=$id";
   // $result     = $dbsql->query_fetch($sql_select);
    $tourelm                = array();
    $tourelm['iParentId']   = $id;
    $tourelm['iStatus']     = 1;
    //$tourelm['cDay']        = $result['count']+1;
    $id                     = 0;
    $order                  = true;
}
?>